package com.den.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.stereotype.Component;

import javax.sql.DataSource;

@Component
public class JdbcConfig {
    //表明身份@Component 核心类依赖于它
    //jdbc主要复杂数据库的4要素 依赖于druid（范德尔）
    public DruidDataSource druidDataSource(){
        DruidDataSource dataSource = new DruidDataSource();
        dataSource.setDriverClassName();
    }
}
